/**
 * 
 */
package lablayer.controller;

import lablayer.view.ViewComponentInterface;

/**
 *
 */
class Updater implements Updatable {
	private ViewComponentInterface viewComponent = null;
	
	private Updater() {
		super();
	}
	
	public Updater(ViewComponentInterface viewComponent) {
		this();
		try {
                    assert viewComponent != null : "viewComponent is null pointer";
                    this.viewComponent = viewComponent;
		} catch (AssertionError e) {
                    //e.printStackTrace();
		}
	}

	@Override
	public void update() {
		this.viewComponent.update();
	}
	
	
}
